home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / tsipp / tsipp.lha / tsipp3.0a / Makefile < prev    next >
Encoding:
Makefile  |  1992-11-02  |  1.5 KB  |  49 lines

  1. #==============================================================================
  2. #                                  Makefile
  3. #------------------------------------------------------------------------------
  4. # Main makefile for Tcl SIPP.  It has the following targets:
  5. #    o all - Compile and link the tsipp interpreter (default).
  6. #    o test - Run the standard tests.
  7. #    o clean - Remove all generated files.
  8. #    o buildhelp - Build the help files.
  9. #    o demo - Generate the demo pictures.
  10. #------------------------------------------------------------------------------
  11.  
  12. include Config.mk
  13.  
  14. SHELL=/bin/sh
  15. BUILDHELP=tsipp -c "load buildhelp.tcl"
  16.  
  17. #-----------------------------------------------------------------------------
  18.  
  19. all:
  20.     cd sippsrc;$(MAKE) -$(MAKEFLAGS) all
  21.     cd src;$(MAKE) -$(MAKEFLAGS) all
  22.  
  23. #-----------------------------------------------------------------------------
  24.  
  25. buildhelp:
  26.     -mkdir help 2>/dev/null
  27.     cd help ; rm -rf *
  28.     $(BUILDHELP) -b sipp.brf help man/tsipp.man
  29.  
  30. #-----------------------------------------------------------------------------
  31.  
  32. test: all
  33.     cd tests;$(MAKE) -$(MAKEFLAGS) test
  34.  
  35. #-----------------------------------------------------------------------------
  36.  
  37. demo: all
  38.     cd demos;$(MAKE) -$(MAKEFLAGS) demo
  39.  
  40. #-----------------------------------------------------------------------------
  41.  
  42. clean: 
  43.     rm -rf help
  44.     rm -f $(OBJS) tsipp core
  45.     cd src;$(MAKE) -$(MAKEFLAGS) clean
  46.     cd sippsrc;$(MAKE) -$(MAKEFLAGS) clean
  47.     cd tests;$(MAKE) -$(MAKEFLAGS) clean
  48.     cd demos;$(MAKE) -$(MAKEFLAGS) clean
  49.